﻿package com.toncen.samepms.system.domain;

import com.toncen.samepms.common.AbstractDomain;
import com.sky.dataimport.DynamicCellDataCell;
import com.sky.dataimport.DynamicCellDataRow;
import com.sky.dataimport.DynamicRowDataCell;
import com.sky.dataimport.DynamicRowDataRow;
import com.sky.dataimport.StaticDataCell;
import com.sky.dataimport.StaticDataRow;
import com.sky.dataimport.datatype.IntegerDataType;
 
/**
 * 描述：功能权限表MONKEY_FUNCTION_PERMISSION的domain文件
 * 
 * @author tch 
 */
@DynamicRowDataRow(title = "动态行功能权限", sheetIndex = 1, startRowIndex = 2, startCellIndex = 1, inserted = false)
@DynamicCellDataRow(title = "动态列功能权限", sheetIndex = 1, startRowIndex = 2, startCellIndex = 2, inserted = false)
@StaticDataRow(title = "静态行列功能权限", sheetIndex = 1)
public class FunctionPermission extends AbstractDomain {
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1341131562648L;
	
	/**
	 * 主体类型
	 */ 
	@StaticDataCell(rowIndex = 1, cellIndex = 1, title = "主体类型")
	@DynamicRowDataCell(cellIndex = 1,  title = "主体类型", require = false)
	@DynamicCellDataCell(rowIndex = 1,  title = "主体类型", require = false)
	private  String subjectType; 	 
    
	/**
	 * 主体
	 */ 
	@StaticDataCell(rowIndex = 2, cellIndex = 2, title = "主体")
	@DynamicRowDataCell(cellIndex = 2,  title = "主体", require = false)
	@DynamicCellDataCell(rowIndex = 2,  title = "主体", require = false)
	@IntegerDataType(msg = "必须为整数类型")
	private  long subjectId=-1; 	 
    
	/**
	 * 资源类型
	 */ 
	@StaticDataCell(rowIndex = 3, cellIndex = 3, title = "资源类型")
	@DynamicRowDataCell(cellIndex = 3,  title = "资源类型", require = false)
	@DynamicCellDataCell(rowIndex = 3,  title = "资源类型", require = false)
	private  String resourceType; 	 
    
	/**
	 * 资源
	 */ 
	@StaticDataCell(rowIndex = 4, cellIndex = 4, title = "资源")
	@DynamicRowDataCell(cellIndex = 4,  title = "资源", require = false)
	@DynamicCellDataCell(rowIndex = 4,  title = "资源", require = false)
	@IntegerDataType(msg = "必须为整数类型")
	private  long resourceId=-1; 	 
    

	public FunctionPermission() {
		super();
	}

	/**
	 * @return the  subjectType
	 */
	public  String getSubjectType() {
		return  subjectType;
	}

	/**
	 * @param  subjectType
	 *            the  subjectType to set
	 */
	public void setSubjectType( String  subjectType) {
		this. subjectType =  subjectType;
	}
	
	/**
	 * @return the  subjectId
	 */
	public  long getSubjectId() {
		return  subjectId;
	}

	/**
	 * @param  subjectId
	 *            the  subjectId to set
	 */
	public void setSubjectId( long  subjectId) {
		this. subjectId =  subjectId;
	}
	
	/**
	 * @return the  resourceType
	 */
	public  String getResourceType() {
		return  resourceType;
	}

	/**
	 * @param  resourceType
	 *            the  resourceType to set
	 */
	public void setResourceType( String  resourceType) {
		this. resourceType =  resourceType;
	}
	
	/**
	 * @return the  resourceId
	 */
	public  long getResourceId() {
		return  resourceId;
	}

	/**
	 * @param  resourceId
	 *            the  resourceId to set
	 */
	public void setResourceId( long  resourceId) {
		this. resourceId =  resourceId;
	}
	
}
